package com.linshengjian.snowball.signal.event;

import com.linshengjian.snowball.signal.model.Message;
import com.linshengjian.snowball.signal.model.Signal;
import org.springframework.context.ApplicationEvent;

/**
 * 型号事件，所有需要通知的地方发出这个事件
 */
public class SignalEvent extends ApplicationEvent {

    private Signal signal;

    private Message message;

    public SignalEvent(Object source, Signal signal, Message message) {
        super(source);
        this.signal = signal;
        this.message = message;
    }

    public Signal getSignal() {
        return signal;
    }

    public Message getMessage() {
        return message;
    }
}
